﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;

namespace BookStore.Bussiness
{
    public class subCatogoryService
    {
        #region getbyID
        public static subCatogoryInfo getbyID(int subCatogoryID)
        {
            return subCatogoryController.getbyID(subCatogoryID);
        }
        #endregion

        #region getAll
        public static DataTable getAll() {
            return subCatogoryController.ListsubCatogory();
        }
        #endregion

        #region insert
        public static bool insertSubCatogory(subCatogoryInfo objSubCatogory) {
            return subCatogoryController.insertSubCatogory(objSubCatogory);
        }
        #endregion

        #region update
        public static bool updateSubCatogory(subCatogoryInfo objSubCatogory) {
            return subCatogoryController.updatesubCatogory(objSubCatogory);
        }
        #endregion

        #region delete
        public static bool deleteSubCatogory(int subCatogoryID)
        {
            return subCatogoryController.deletesubCatogory(subCatogoryID);
        }
        #endregion

        //#region checkExist
        //public static bool checkExist(string subCatogoryID) {
        //    return subCatogoryController.checkExist(subCatogoryID);
        //}
        //#endregion
        #region checksubCatogoryID
        public static bool checksubCatogoryID(int subCatogoryID)
        {
            return subCatogoryController.checksubCatogoryID(subCatogoryID);
        }
        #endregion
    }
}
